<!--************************************************************ -->
<!--* 文件创建日期：2010                                  * -->
<!--* 文件修改日期：			                                   * -->
<!--************************************************************ -->
<!--JSP初始化设置-->
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="com.infomanage.po.*" %>
<%@page import="com.infomanage.vo.*" %>
<%@page import="com.infomanage.util.Consts"%>
<%  response.addDateHeader("Expires", 0);response.setHeader("Pragma","no-cache"); response.setHeader("Cache-Control","no-cache");%>
<%
	request.setCharacterEncoding("UTF-8");
	String itemId = request.getParameter("itemId");
	String personId = request.getParameter("personId");
	String deptId = request.getParameter("deptId");
	int score = Integer.parseInt(request.getParameter("score"));
	String explain = "";
	if(score > 160 && score <= 200){
		explain = "根据测试结果，您需要进一步检查";
	}else if(score > 200 && score <= 250){
		explain = "根据测试结果，您有明显的心理问题，需进行心理咨询";
	}else if(score > 250){
		explain = "根据测试结果，您的心理问题比较严重，需要作医学上的详细检查";
	}else{
		explain = "根据测试结果，您的情况属于正常";
	}
%>
<html>
<head>
	<title>测评结果</title>
	<META HTTP-EQUIV="Pragma" CONTENT="no-cache">	
	<link href="../../css/table.css" rel="stylesheet" type="text/css">
	<link href="../../css/calendar.css" rel="stylesheet" type="text/css">
	<script type="text/javascript" src="../../js/calendar.js"></script>
	<script type="text/javascript">
	   function init() {
		   if("" != "<%=itemId%>") { // 修改
		   }
	   }
	   // 提交
	   function doSubmit(){
		 	form1.submit();
	   }

	   function showError(error){
		   alert(error);
	   }

	   function showInfo(info){
		   alert(info);
		   window.returnValue = "ok";
		   window.close();
	   }
	</script>
</head>
<body  rightmargin="0" bottommargin="0" leftmargin="0" topmargin="0"  onload="init();">
	<form name="form1" action="psychometry_action.jsp" method="post" target="actionFrame">
	<input type="hidden" name="actionType" value="add">
	<input type="hidden" name="itemId" value="<%=itemId%>">
	<input type="hidden" name="personId" value="<%=personId%>">
	<input type="hidden" name="deptId" value="<%=deptId%>">
	<input type="hidden" name="score" value="<%=score%>">
	<table class="dialogTable" cellpadding="0" cellspacing="0">
		<!-- 表头-->
		<tr class="dialogTableHeader">
			<td>测评结果</td>
		</tr>
		<!-- 表数据-->
		<tr class="dialogTableContent">
			<td>
				<!-- 数据项 -->
				<table class="dataTable">
					<col width="30%">
					<col width="70%">
					<tr>
						<td class="field">
							分数
						</td>
						<td>
							<%=score %>分
						</td>
					</tr>
					<tr style="height: 100px">
						<td class="field">
							说明
						</td>
						<td valign="middle">
							<%=explain %>
						</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td colspan="2" class="tableBtn">
				<span onclick="doSubmit();">确定</span>
			</td>
		</tr>
		<tr valign="top">
			<td colspan="2">
				&nbsp;
			</td>
		</tr>
	</table>
	</form>
	<iframe src="#" name="actionFrame" style="display: none;"></iframe>
</body>
</html>